	<div class="detailsBox">
		<div class="openBox">
			<h3><i class="jtIco"></i>经销商合作方</h3>
	        <div class="detaiTab">
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	            	<tbody>
	            		<tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>申请信息</td></tr>                 
	                    <tr>
	                    	<td align="right" class="bg" width="15%">申报省份</td>
	                      	<td width="35%">
	                      	 ${ActOrgEntity}
	                        </td>
	                        <td align="right" class="bg" width="15%">经办人</td>
	                        <td>
	                        	${currentUser1}
	                        </td>
	                    </tr>  
	                    <tr>
	                      	<td align="left" class="bg" width="15%">一批商分类</td>
	                    	<td>
	                    		${batchClassification}
	                    	</td>
                            <td align="right" class="bg" width="15%">渠道共享</td>
                            <td>
							<#if vo.isShare=0>
                                <input type="text" readonly="readonly" value="否">
							<#elseif vo.isShare=1>
                                <input type="text" readonly="readonly" value="是">
							</#if>
                            </td>
	                    </tr> 
	            	
	            		<tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>品牌经营模式</td></tr>
	                	<tr>
	                    	<td align="right" class="bg" width="15%">销售链条结构</td>
	                      	<td width="35%" colspan="3">
	                      		${vo.salesChainStructure}
	                      	</td>
	                    </tr>
	                    <tr>
	                      	<td align="right" class="bg" width="15%">申报地区一批商情况</td>
	                    	<td colspan="3">
	                    		${vo.salesPatternCondition}
	                    	</td>
	                    </tr>
	                    
	                    
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>一批商基本情况</td></tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">营业执照名称</td>
	                      	<td width="35%">
	                      	<#if type=="detail" || approvalStatus=='UNDO'>
								${vo.businessLicenseName}
							<#else>
								*********
							<@permission permissionName="UpdateInternalInfo">
								<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/jxs_workflow_model_view?parameter=${vo.id}">查看</a>
							</@permission>
							</#if>
                      		</td>
                      		
	                     	<td align="right" class="bg" width="15%">营业执照号</td>
	                        <td>
	                        <#if type=="detail" || approvalStatus=='UNDO'>
								${vo.businessLicenseNo}
							<#else>
								*********
							<@permission permissionName="UpdateInternalInfo">
								<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/jxs_workflow_model_view?parameter=${vo.id}">查看</a>
							</@permission>
							</#if>
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">法人代表姓名</td>
	                      	<td width="35%">
	                      		${vo.corporationName}
                      		</td>
	                     	<td align="right" class="bg" width="15%">成立时间</td>
	                        <td>
	                        	${vo.foundingTime}
	                        </td>
	                    </tr>
	                    <tr>
	                      	<td align="right" class="bg" width="15%">注册资本</td>
	                    	<td colspan="3">
	                    		${vo.registeredCapital}
	                    	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">经营地址</td>
	                    	<td colspan="3">
	                    	<#if type=="detail" || approvalStatus=='UNDO'>
								<select id="select_provinceId" name="manageProvince" value="${vo.manageProvince}" disabled="true" onchange="provinceOnchange()"></select>&nbsp;&nbsp; 
	      						 <select id="select_areaId" name="manageArea" value="${vo.manageArea}" disabled="true"onchange="areaOnchange()"></select>&nbsp;&nbsp; 
	      						 <select id="select_cityId" name="manageCity" value="${vo.manageCity}" disabled="true" ></select> 
	                    		 <span id = "jxsjydz">${vo.manageDetail}</span>
	                    		 <a href="javascript:void(0);" target="_blank" onclick="jxsjydzmap(this)">地图中查看</a>
							<#else>
								*********
							<@permission permissionName="UpdateInternalInfo">
								<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/jxs_workflow_model_view?parameter=${vo.id}">查看</a>
							</@permission>
							</#if>
	                    	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">仓库面积</td>
	                      	<td width="35%">
	                      		${vo.warehouseArea}
                      		</td>
	                     	<td align="right" class="bg" width="15%">运输车辆数</td>
	                        <td>
	                        	${vo.transportVehiclesNum}辆
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">与品牌合作时长</td>
	                      	<td width="35%">
	                      		${vo.brandCooperationTerm}年
                      		</td>
	                     	<td align="right" class="bg" width="15%">代理其他品牌数量</td>
	                        <td>
	                        	${vo.otherBrandNum}
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">品牌授权期限</td>
	                      	<td colspan="3">
	                      		${vo.brandLicensingDeadline}年
                      		</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">代理的其他三大品牌</td>
	                      	<td width="35%">
	                      		${vo.agencyOtherBrand}
                      		</td>
	                     	<td align="right" class="bg" width="15%">本一批商下游二批商数量</td>
	                        <td>
	                        	${vo.downstreamTwoPattern}
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">融资额度</td>
	                      	<td colspan="3">
	                      		${vo.financingLimit}万元
                      		</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">年销售额</td>
	                      	<td colspan="3">
	                      		${vo.annualSales}万元
                      		</td>
	                    </tr>
	                    <tr>
	                        <td align="right" class="bg" width="15%">品牌对一批商授权经营区域</td>
	                        <td colspan="3">
	                      		<@select type="radio" value="${vo.brandLicensingArea}" renderonly="true" class="only" name="brandLicensingArea" dataSouceType="jxs_brand_licensing_area"/>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td align="right" class="bg" width="15%">品牌对一批商授权经营渠道</td>
	                        <td colspan="3">
	                      		<@select type="radio" value="${vo.brandLicensingChannel}" renderonly="true" class="only" name="brandLicensingChannel" dataSouceType="jxs_brand_licensing_channel"/>
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td></td>
	                      	<td align="center" class="bg" width="30%">2015年</td>
	                     	<td align="center" class="bg" width="30%">2016年</td>
	                        <td align="center" class="bg" width="30%">2017年</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">近三年任务数</td>
	                    	<td align="center" width="30%">${vo.nearlyThreeYearTask1} 万元</td>
	                     	<td align="center" width="30%">${vo.nearlyThreeYearTask2} 万元</td>
	                        <td align="center" width="30%">${vo.nearlyThreeYearTask3} 万元</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">任务完成率</td>
	                      	<td align="center" width="30%">${vo.taskCompletionRate1}%</td>
	                     	<td align="center" width="30%">${vo.taskCompletionRate2}%</td>
	                        <td align="center" width="30%">${vo.taskCompletionRate3}%</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">在本地区一批商中销售占比</td>
	                      	<td width="35%">
	                      		${vo.accountRate}%
                      		</td>
	                     	<td align="right" class="bg" width="15%">毛利率/净利率</td>
	                        <td>
	                        	${vo.grossNetRate}%
	                        </td>
	                    </tr>
	                    <tr>
	                        <td align="right" class="bg" width="15%">原贷款单号</td>
	                        <td colspan="3">
	                      		${vo.originalBillCode}
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">一批商对二批商的销售策略</td>
	                      	<td colspan="3">
	                    		${vo.salesStrategy}
	                    	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">备注</td>
	                      	<td colspan="3">
	                    		${vo.remark}
	                    	</td>
	                    </tr>
	                    
	                    
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>担保方式</td></tr>
	                    <tr>
	                        <td align="right" class="bg" width="15%">担保方式</td>
	                        <td colspan="3">
	                      		<@select type="radio" value="${vo.guaranteeMethod}" class="only" name="guaranteeMethod" dataSouceType="jxs_guarantee_method" renderonly="true" />
	                        </td>
	                    </tr>
	                    
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>定向支付</td></tr>
	                    <tr>
	                        <td align="right" class="bg" width="15%">资金使用情况</td>
	                        <td colspan="3">
	                      		<@select type="radio" dataSouceType="YW" class="tabInp" name="fundUsage" value="${vo.fundUsage}"  renderonly="true" />
	                      	<#if vo.fundUsage == 'Y'>
	                      		对象${vo.fundUsageObject}
	                      		比例${vo.fundUsageRate}
	                      	</#if>
	                        </td>
	                    </tr>
	                    
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>结论</td></tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">结论说明</td>
	                      	<td colspan="3">
	                    		${vo.conclusionDesc}
	                    	</td>
	                    </tr>
	               	</tbody>
	        	</table>
	        </div>
        </div>
	</div>
	<div class="detailsBox">
		<div class="openBox">
		    <h3><i class="jtIco"></i>附件信息</h3>
	        <div class="detaiTab detaiTab1 m10">
			        <p class="p10">合作方申请报告</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResult"/></div>
			</div>
				  <div class="detaiTab detaiTab1 m10">
			        <p class="p10">上门营销照片</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResultPicture"/></div>
		  	 </div>
				  <div class="detaiTab detaiTab1 m10">
			        <p class="p10">厂家证明文件</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResultEvidence"/></div>
		     </div>			
			</div>
	</div>
<script>
function jxsjydzmap(obj){
	var location0 = $("#select_provinceId").find("option:selected").text() + $("#select_areaId").find("option:selected").text() 
		+ $("#select_cityId").find("option:selected").text() + $("#jxsjydz").html();
	location0 = location0.replace(/[\r\n &nbsp;]/g,'');
	obj.href='http://api.map.baidu.com/geocoder?address='+location0+'&output=html&src=';
}
	
//省市区三级联动
provinceLoad();
function provinceLoad(){
	var provinceCode = $("#select_provinceId").attr('value');
	$.ajax({
		type: "GET",
		url:"${crmUrl}/common/findProvinces",
		dataType:"jsonp",
		jsonp:"_callback",
		success:function(result){
				$("#select_provinceId").empty();
				 $("#select_provinceId").append("<option value=''>请选择</option>"); 
				 $("#select_areaId").empty();
				 $("#select_areaId").append("<option value=''>请选择</option>"); 
				 $("#select_cityId").empty();
				 $("#select_cityId").append("<option value=''>请选择</option>");   
				 $.each(result.data,function(key,value){
				 	if(provinceCode == value[0])
					    $("#select_provinceId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
					else
						$("#select_provinceId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");     
				 });
				 provinceOnchange(function(){
				 	 areaOnchange();
				 });
			    
	 		}
 	});
 };


function provinceOnchange(callback){
	var provinceCode = $("#select_provinceId").val() || $("#select_provinceId").attr('value');
	var areaCode = $("#select_areaId").val() || $("#select_areaId").attr('value');
	if(!provinceCode){
		 $("#select_areaId").empty();
		 $("#select_areaId").append("<option value=''>请选择</option>"); 
		 $("#select_cityId").empty();
		 $("#select_cityId").append("<option value=''>请选择</option>");   			
		 return true;
	}
	$.ajax({
		type: "GET",
		url:"${crmUrl}/common/findCityByProvinceCode",
		data:{provinceCode:provinceCode},
		dataType:"jsonp",
		jsonp:"_callback",
		success:function(result){
				 $("#select_areaId").empty();
				 $("#select_areaId").append("<option value=''>请选择</option>"); 
				 $("#select_cityId").empty();
				 $("#select_cityId").append("<option value=''>请选择</option>");   
				 $.each(result.data,function(key,value){
				 	if(areaCode == value[0])
					    $("#select_areaId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
					else
				 		$("#select_areaId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");   
					 
				 });
				 callback &&　callback();
	 		}
 	});
 }
      
 function areaOnchange(){
	var areaCode = $("#select_areaId").val() || $("#select_areaId").attr('value');
	var cityCode = $("#select_cityId").val() || $("#select_cityId").attr('value');
	if(!areaCode){
		$("#select_cityId").empty();
	    $("#select_cityId").append("<option value=''>请选择</option>");   
		return true;
	}
	$.ajax({
		type: "GET",
		url:"${crmUrl}/common/findDistrictByCityCode",
		data:{cityCode:areaCode},
		dataType:"jsonp",
		jsonp:"_callback",
		success:function(result){
			 $("#select_cityId").empty();
			 $("#select_cityId").append("<option value=''>请选择</option>");   
			 $.each(result.data,function(key,value){
			 	if(cityCode == value[0])
				    $("#select_cityId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
				else
					$("#select_cityId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");   
			 });
		 }
 	});

		
}
</script>